package com.yuntai.pms.model.dto.stopDiag;

import com.alibaba.fastjson.JSON;
import com.yuntai.pms.model.entity.stopDiag.HfpStopDiagRecords;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;
import java.util.List;

@Data
@Slf4j
public class HfpStopDiagRecordsDto extends HfpStopDiagRecords {

    private Integer pageNo;
    private Integer pageSize;

    private String expectDate;
    private String regType;
    private String payStatus;
    private String deptName;
    private String docName;
    private String patName;
    private String idCardNo;
    private String phoneNo;
    private String startTimeStr;//开始时间
    private String endTimeStr;//结束时间

    private Long userId;   // spring 权限中的userId

    private String exceptionStr;

    private List<String> exceptionList;

    public String getExceptionStr() {
        return exceptionStr;
    }

    public void setExceptionStr(String exceptionStr) {
        this.exceptionStr = exceptionStr;
        if(exceptionStr.length()>0){
            this.exceptionList = Arrays.asList(exceptionStr.split(","));
        }
    }
    public String toString() {
        return JSON.toJSONString(this);
    }

}
